﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Tyshka.Subroutines.Kernel.Extensions
{
    public static class CollectionExtension
    {
        public static IEnumerable<T> Shuffle<T>(this IEnumerable<T> e)
        {
            var r = new Random();
            return e.OrderBy(x => r.Next());
        }
    }
}
